package com.weiyin.examination.module;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * @author njf
 * @date 2017/9/20
 */

public class PdfModule implements Parcelable {
    /**
     * pdf 地址
     */
    private String pdfUrl;
    /**
     * pdf文件宽
     */
    private String pdfWidth;
    /**
     * pdf文件高
     */
    private String pdfHeight;

    protected PdfModule(Parcel in) {
        pdfUrl = in.readString();
        pdfWidth = in.readString();
        pdfHeight = in.readString();
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(pdfUrl);
        dest.writeString(pdfWidth);
        dest.writeString(pdfHeight);
    }

    @Override
    public int describeContents() {
        return 0;
    }

    public static final Creator<PdfModule> CREATOR = new Creator<PdfModule>() {
        @Override
        public PdfModule createFromParcel(Parcel in) {
            return new PdfModule(in);
        }

        @Override
        public PdfModule[] newArray(int size) {
            return new PdfModule[size];
        }
    };

    public String getPdfUrl() {
        return pdfUrl;
    }

    public void setPdfUrl(String pdfUrl) {
        this.pdfUrl = pdfUrl;
    }

    public String getPdfWidth() {
        return pdfWidth;
    }

    public void setPdfWidth(String pdfWidth) {
        this.pdfWidth = pdfWidth;
    }

    public String getPdfHeight() {
        return pdfHeight;
    }

    public void setPdfHeight(String pdfHeight) {
        this.pdfHeight = pdfHeight;
    }

}
